-- GENERATED SPELL FOR [Redridge Mystic] --


function spell0_430(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(547,pUnit)
pUnit:RegisterEvent('Sorts_430', 2500, 1)
end

function spell1_430(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(20802,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_430', 3000, 1)
end

function Sorts_430(pUnit, Event)
local choix_sorts_430 = math.random(0, 1)
if choix_sorts_430 == 0 then
pUnit:RegisterEvent('spell0_430', 1, 1)
end
if choix_sorts_430 == 1 then
pUnit:RegisterEvent('spell1_430', 1, 1)
end
end

function mob430_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_430', math.random(1500, 3000), 1)
end

function mob430_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob430_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob430_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(430, 1, 'mob430_Action')
RegisterUnitEvent(430, 2, 'mob430_Leave')
RegisterUnitEvent(430, 3, 'mob430_Kill')
RegisterUnitEvent(430, 4, 'mob430_Die')
